home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 727 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.4 KB

  1. Path: herold.franken.de!jhd
  2. Date: 06 Jan 1996 10:39:00 +0100
  3. From: jhd@herold.franken.de (Joachim Durchholz)
  4. Newsgroups: comp.lang.eiffel,comp.lang.ada,comp.edu,comp.lang.c,comp.lang.c++,comp.lang.modula2,comp.lang.modula3
  5. Message-ID: <60KgWmb-3RB@herold.franken.de>
  6. References: <30C40F77.53B5@swsbbs.com> <4behis$3cl@dux.dundee.ac.uk>
  7.     <RIGOTTI.95Dec29100514@roach.dra.hmg.gb>
  8.     <4cd8fc$oud@news.manawatu.gen.nz> <HtlknJAZAQ7wEwjl@wndrwrks.demon.co.uk>
  9. Subject: Re: Hungarian notation
  10. X-Newsreader: XP v3.02
  11. MIME-Version: 1.0
  12. Content-Type: text/plain; charset=ISO-8859-1
  13. Content-Transfer-Encoding: 8bit
  14. Distribution: world
  15.  
  16. andy@wndrwrks.demon.co.uk wrote 05.01.96 on Re: Hungarian notation:
  17.  
  18. > In article <4cd8fc$oud@news.manawatu.gen.nz>, Chris Tutty
  19. > <ctutty@manawatu.gen.nz> writes
  20. >
  21. > Consider also that variable names may be misleading anyway. In that
  22. > sense there's no great difference between
  23. >
  24. >         someProc(MyString)
  25. >
  26. > and
  27. >
  28. >         someProc(pszMyString)
  29. >
  30. > either could quite happily refer to any other data type.
  31. >
  32.  
  33. This example does not occur in real life. Or rather, it better should not!
  34. Anybody using meaningless names like "MyString" should be thrown out of  
  35. the programming business. Depending on the actual semantics of "someProc",  
  36. the parameter should be called "Message" or "Options" or "ParserInput" or  
  37. whatever.
  38.  
  39. -Joachim
  40.  
  41. --
  42. Im speaking for myself here.
  43. ## CrossPoint v3.02 ##
  44.